import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state() {
    return {
      uid: '',
      id: ''
    }
  },
  mutations: {
    getUid(state, userid) {
       state.uid = userid;
    },
    useUid(state) {
      console.log(state.uid)
    },
    getId(state, id) {
      state.id = id;
    }
  },
  actions: {
  },
  modules: {
  }
})
